<html xmlns="http://www.w3.org/1999/xhtml"  
     xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.prime.com.tr/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets"> 
    

<h:head>
 <link href="#{facesContext.externalContext.requestContextPath}/css/common.css" rel="stylesheet" type="text/css"/>
</h:head>
<h:body>

<center>
<h:graphicImage id="img"
     url="/resources/images/logo.png">
</h:graphicImage>  
</center>
<center>
<h:form>
<p:growl id="growl" showDetail="true" sticky="true" />
<p:panel header="Entrar no Sistema" style="width: 350;">
 <ui:param name="usuario" value="loginBean.login" />
 
   <h:form>
   
       <h:panelGrid columns="2" cellpadding="2">
           
           <h:outputLabel for="usuario" value="Usuário:" />
           <p:inputText id="usuario" value="#{loginBean.login}" label="Usuário" required="true"/>
           
           <h:outputLabel for="senha" value="Senha:" />
           <p:keyboard value="#{loginBean.senha}"  
                  id="senha" password="true" keypadOnly="true" label="Senha" required="true" clearLabel="Limpar" closeLabel="Fechar" backspaceLabel="Voltar"/>  
          		
		
		<center>
			<f:facet name="footer">  
                <p:commandButton value="Entrar"   
                    action="#{loginBean.login}"   
                    ajax="false" 
                    update="growl">  
                    <f:param name="menuUsuario" value="#{loginBean.menu.menu}" />
                   </p:commandButton>
                 <p:commandButton value="Cadastre-se" image="ui-icon ui-icon-person"
                              /> 
            </f:facet>  
        </center>
		 
       </h:panelGrid>
   </h:form>
</p:panel>

</h:form>

</center>
</h:body>
</html>